<form class="tableform" action="index.php?app=aftersales&ctl=admin_returnproduct&act=new_save" id="tag-form" method="POST">
    <input name="return_id" type="hidden" value="<{$return_id}>">
    <input name="status" type="hidden" value="3">
    <div class="division">
    <table width="100%" border="0">
        <tr>
            <th>订单号：</th>
            <td>
               <{$order_info.order_id}>
            </td>
        </tr>
        <tr>
            <th>售后单号：</th>
            <td>
               <{$return_data.return_bn}>
            </td>
        </tr>
        <tr>
            <th>订单总金额：</th>
            <td>
                <h3><{$order_info.total_amount|cur_odr}></h3>
            </td>
        </tr>
        <tr>
            <th>运费：</th>
            <td>
                <{$order_info.shipping.cost_shipping}>
            </td>
        </tr>
        <tr>
            <th>售后服务的商品：</th>
            <td>
                <div>
                    <table class="gridlist" width="100%" border="0">
                        <thead>
                        <tr>
                            <th>货号</th>
                            <th>商品名称</th>
                            <th>商品金额</th>
                            <th>数量</th>
                            <th>退款金额</th>
                        </tr> </thead>
                        <{foreach from=$return_data.product_data item=item key=key}>
                        <tr>
                            <td><{$item.bn}></td>
                            <td><{$item.name}></td>
                            <td><{$item.price}></td>
                            <td><{$item.num}></td>
                            <td>
                                <input class="x-input" size="8" name="refund_amount[<{$item.product_id}>]" value="<{$item.refund_amount}>" />
                            </td>
                        </tr>
                        <{/foreach}>
                    </table>
                </div>

            </td>
        </tr>

     </table>
    </div>
    <div class="table-action">
        <button class="btn" type="submit" id="tag-form-submit"><span><span><{t}>接受申请<{/t}></span></span></button>
    </div>
</form>


<script>
    (function(){
        var _form = $('tag-form');
        var btn =$('tag-form-submit');
        //var finder = finderGroup['<{$env.get.finder_id}>'];

        _form.store('target',{

            onSuccess:function(response){
                var hash_res_obj = JSON.decode(response);
                if (hash_res_obj.success != undefined && hash_res_obj.success != "")
                {
                    try{
                        var _dialogIns = btn.getParent('.dialog').retrieve('instance');
                    }catch(e){}

                    if(_dialogIns)
                    {
                        _dialogIns.close();
                    }
                }
            }
        });

    })();

</script>
